<?php

namespace App\Admin;

use Illuminate\Database\Eloquent\Model;

class Live extends Model
{
    protected $table = 'live';

    //关联专业表
    public function rel_profession(){
    	return $this -> hasOne('App\Admin\Profession','id','profession_id');
    }

    //关联直播流表
    public function rel_stream(){
    	return $this -> hasOne('App\Admin\Stream','id','stream_id');
    }
}
